<template>
  <div class="main">
    <Title title='房产经纪' icon='el-icon-s-home'></Title>
  <Content :data='List' route='/list' category='agent'></Content>
  </div>
</template>

<script>
import Title from '@/components/title'
import Content from '@/components/content'
import { getBorkerList } from "@/api/borker.js";
export default {
  components:{Title,Content},
  data() {
    return {
      page: {
        _limit: -1,
      },
      List: [],
    };
  },
  async created() {
    const { data } = await getBorkerList(this.page);
    this.List = data;
    console.log(data);
  },
  methods: {
    getDetail(id) {
      this.$router.push({
        path: "/list",
        query: {
          agent: id,
        },
      });
    },
  },
};
</script>

<style lang="less" scoped>
.main {
  margin: 0 auto;
  width: 1200px;
}
@media screen and (max-width: 768px) {
    .main{
      width: 100% !important;
    }
}
</style>